home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher1.12 / misc / Radio / radio / Makefile < prev    next >
Encoding:
Makefile  |  1991-08-14  |  709 b   |  48 lines

  1. #
  2. #  Uncomment out *one* of the following machine types
  3. #
  4.  
  5. #MACHINE = -DIS_A_HPUX
  6. #MACHINE = -DIS_AUX_BOX
  7. #MACHINE = -DIS_A_RS6000
  8. #MACHINE = -DIS_NEXT
  9. #MACHINE = -DIS_BSD
  10. MACHINE = -DIS_A_SUN
  11.  
  12. BINDIR  = /usr/local/bin
  13. LIBDIR  = /usr/local/lib
  14.  
  15. OBJS    = radio.o util.o error.o globals.o #ourutils.o
  16. CC    = cc
  17. INSTALL = install
  18. CCFLAGS    = -g 
  19. LDFLAGS    =
  20.  
  21. #
  22. # HP need -lBSD
  23. #
  24. LIBS    =
  25. TARGET    = radio
  26.  
  27. all : $(TARGET)
  28.  
  29. .c.o:
  30.     $(CC) $(CCFLAGS) $(MACHINE) -c $<
  31.  
  32. globals.h : globals.c
  33.  
  34. $(TARGET) : $(OBJS)
  35.     $(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  36.  
  37. clean:
  38.     rm -f $(OBJS)
  39.     rm -f *.out *~ core
  40.  
  41. tar:
  42.     tar cf $(TARGET)`date +%m_%d`.tar *.c *.h Makefile $(TARGET)
  43.     
  44. install: all
  45.     $(INSTALL) -c $(TARGET) $(BINDIR)
  46.  
  47.     
  48.